<?php 
session_start();

include '../../public/common/mysql_connect.php';

$id=$_POST['id'];
$name=$_POST['name'];
$addr=$_POST['addr'];
$tel=$_POST['tel'];
$email=$_POST['email'];

$sql="update touch set name='{$name}',addr='{$addr}',tel='{$tel}',email='{$email}' where id={$id}";

if(mysqli_query($conn,$sql)){
	echo "<script>location='userlist.php'</script>";
}

?>